package com.example.mq.mqserver.core;

import java.io.Serializable;

public class BasicProperties implements Serializable {

    private String messageId;//UUID


    // DIRECT, 此时 routingKey 就表示要转发的队列名.
    // FANOUT, 此时 routingKey 无意义(不使用).
    // TOPIC, 此时 routingKey 就要和 bindingKey 做匹配. 符合要求的才能转发给对应队列.
    private String routingKey;//口令-答案


    private int deliverMode = 1;//持久化（1否，2要）


    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public int getDeliverMode() {
        return deliverMode;
    }

    public void setDeliverMode(int deliverMode) {
        this.deliverMode = deliverMode;
    }
}
